
use clap::Args;
use serde::{Deserialize, Serialize};

use wtask_base::{error::WResult, machine::get_home_dir};

use crate::{basic::WPath, utils::AppTrait};




#[derive(Debug, Clone, Args, Serialize, Deserialize)]
pub struct AppHome;


impl AppTrait for AppHome {
    type Status = ();
    type Res = WPath;
    
    async fn server_handle_single(self) -> WResult<WPath> {
        let dir = get_home_dir();
        Ok(WPath::from(&dir))
    }
}

